package com.simple.gateway.center.domian.application.converter;

import com.simple.gateway.center.basedata.po.ApplicationInterfaceMethod;
import com.simple.gateway.center.domian.application.bo.ApplicationInterfaceMethodBO;
import com.simple.gateway.center.domian.application.dto.ApplicationInterfaceMethodDTO;
import com.simple.gateway.center.domian.application.param.ApplicationInterfaceMethodParam;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 项目: simple-gateway-core
 * <p>
 * 功能描述:
 *
 * @author: WuChengXing
 * @create: 2023-08-07 17:19
 **/
@Mapper
public interface ApplicationInterfaceMethodConverter {

    ApplicationInterfaceMethodConverter INSTANCE = Mappers.getMapper(ApplicationInterfaceMethodConverter.class);

    /**
     * bo2Dto
     *
     * @param bo
     * @return
     */
    ApplicationInterfaceMethodDTO bo2Dto(ApplicationInterfaceMethodBO bo);

    /**
     * bo2Do
     *
     * @param bo
     * @return
     */
    ApplicationInterfaceMethod bo2Do(ApplicationInterfaceMethodBO bo);

    /**
     * da2Bo
     *
     * @param applicationInterfaceMethod
     * @return
     */
    ApplicationInterfaceMethodBO do2Bo(ApplicationInterfaceMethod applicationInterfaceMethod);

    /**
     * param2Bo
     *
     * @param param
     * @return
     */
    ApplicationInterfaceMethodBO param2Bo(ApplicationInterfaceMethodParam param);
}
